package com.caojing.haolemai;

import android.app.Application;
import android.util.Log;

import com.iflytek.cloud.SpeechConstant;
import com.iflytek.cloud.SpeechUtility;
import com.lidroid.xutils.DbUtils;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by CaoJing on 2016/10/3.
 */
public class MyApp extends Application {
    private static final String TAG = "JPush";
    public static DbUtils dbUtils,dbUtils2;
    @Override
    public void onCreate() {
        Log.d(TAG, "[ExampleApplication] onCreate");
        super.onCreate();

        JPushInterface.setDebugMode(true); 	// 设置开启日志,发布时请关闭日志
        JPushInterface.init(this);     		// 初始化 JPush

        SpeechUtility.createUtility(this, SpeechConstant.APPID +"=5808961a");
        dbUtils=DbUtils.create(this,"collect.db");
        dbUtils2=DbUtils.create(this,"cart.db");
    }

}
